-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Display error when cannot complete task #22097
Conversation
Reviewer Checklist
Screenshots/VideosWeb22097.Web.movMobile Web - Chrome22097.mWeb.Chrome.webmMobile Web - Safari22097.mWeb.Safari.mp4Desktop22097.Desktop.moviOS22097.iOS.mp4Android22097.Android.webm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests well a minor change that we need to keep from previous version.
value: { | ||
[completedTaskReportAction.reportActionID]: { | ||
errors: ErrorUtils.getMicroSecondOnyxError('task.messages.error'), | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can keep the pendingAction: null}
maybe it will be needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mollfpr We need to keep pendingAction in failureData
to check in clearReportActionErrors
function.
App/src/libs/actions/ReportActions.js
Line 11 in fc15d9b
if (reportAction.pendingAction === CONST.RED_BRICK_ROAD_PENDING_ACTION.ADD) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for confirming it; I didn't realize that 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM and tests well 👍
Friendly bump @deetergp for a review |
@deetergp Friendly bump, please help us to review the PR when you have a chance. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apologies, guys. Go OOO for two days and it really piles up! 😅 PR looks good, thanks for the changes!
@deetergp looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
Go home, Melvin, you're drunk! The tests are all good. |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/deetergp in version: 1.3.40-0 🚀
|
🚀 Deployed to production by https://github.com/Julesssss in version: 1.3.40-5 🚀
|
Details
We display the error message when the user clicks on complete or re-open task but doesn't permission
Fixed Issues
$ #20542
PROPOSAL: #20542 (comment)
Tests
You do not have the permission to do the requested action.
No tiene permiso para realizar la acción solicitada.
Offline tests
QA Steps
You do not have the permission to do the requested action.
No tiene permiso para realizar la acción solicitada.
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Web
Screencast.from.03-07-2023.09.46.50.webm
Mobile Web - Chrome
Record_2023-07-03-09-48-57.mp4
Mobile Web - Safari
Screen-Recording-2023-07-03-at-11.20.20_1.mp4
Desktop
Screen-Recording-2023-07-03-at-11.23.30_1.mp4
iOS
Screen-Recording-2023-07-03-at-11.14.33.mp4
Android
20542.mp4